import { Component } from 'react'

import { HashRouter, Switch, Route } from 'react-router-dom'

import Home from '../pages/Home'

import About from '../pages/About'

class Router extends Component {
    render() {
        return (
            <HashRouter>
                <Switch>
                    <Route path="/" component={Home} exact/>
                    <Route path="/about/:id" component={About} exact/>
                </Switch>
            </HashRouter>
        )
    }
}

export default Router

